package com.dao.impl;

import com.dao.UserDao;
import org.springframework.stereotype.Component;

@Component("userDao")
public class UserDaoImpl implements UserDao {
    @Override
    public boolean login(String name, String password) {
        if (name.equals("张三") && password.equals("123")) {
            return true;
        }
        return false;
    }
    @Override
    public void insert(){
        System.out.println("添加用户信息");
    }
    public void update(){
        System.out.println("更新用户信息");
    }
    public void delete(){
        System.out.println("删除用户信息");
    }
    public void select(){
        System.out.println("查询用户信息");
    }
}
